package com.gee.spring.boot.rpf.client;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * desc:
 *
 * @author gee wrote on  2021-02-09 10:13:30
 */
@Component
@Scope("prototype")
public class NoneWorkClient extends AbstractClient<Object, BaseClientResponse>{

    @Override
    public String getCacheKey(Object req) {
        return null;
    }

    @Override
    public BaseClientResponse call(Object req) throws Exception {
        BaseClientResponse clientResponse = new BaseClientResponse();
        clientResponse.setCode("000000");
        clientResponse.setMsg("调用成功");
        return clientResponse;
    }

    @Override
    public boolean needV2PTranslator() {
        return false;
    }
}
